<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>last_response (Yubico)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File yubico.rb, line 176</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last_response</span>
      <span class="ruby-identifier">hash</span> = <span class="ruby-ivar">@_res</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp re">/h=([\w_\=\/]+)[\s]/</span>).<span class="ruby-identifier">first</span>
            <span class="ruby-identifier">timestamp</span> = <span class="ruby-ivar">@_res</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp re">/t=([\w\-:]+)[\s]/</span>).<span class="ruby-identifier">first</span>
            <span class="ruby-identifier">status</span> = <span class="ruby-ivar">@_res</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp re">/status=([a-zA-Z0-9_]+)[\s]/</span>).<span class="ruby-identifier">first</span>
            <span class="ruby-identifier">info</span> = <span class="ruby-ivar">@_res</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp re">/info=([\w\t\S\W]+)/</span>).<span class="ruby-identifier">first</span>
          
            <span class="ruby-keyword kw">return</span> { <span class="ruby-value str">&quot;h&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">hash</span>, <span class="ruby-value str">&quot;t&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">timestamp</span>, <span class="ruby-value str">&quot;status&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">status</span>, <span class="ruby-value str">&quot;info&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">info</span> }
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>